package user;

import book.BookList;
import iOperations.IOperations;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User.User: 86136
 * Date: 2024-06-03
 * Time: 12:45
 */
public abstract class User {
    protected String name;
    IOperations[] iOperations;
    public User(String name) {
        this.name = name;
    }

    public abstract int menu();
    public void doIOperatons(int choice, BookList bookList) {
        iOperations[choice].work(bookList);
    }
}
